﻿//  Copyright (c) 2010 Ray Liang (http://www.dotnetage.com)
//  Dual licensed under the MIT and GPL licenses:
//  http://www.opensource.org/licenses/mit-license.php
//  http://www.gnu.org/licenses/gpl.html

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DNA.OpenAPI.Atom;
using DNA.OpenAPI.OpenSearch;

namespace DNA.OpenAPI.OpenSearch
{
    public interface IOpenSearchProvider
    {
        string Title { get;  }
        
        bool SupportSuggestion { get; }
        
        IEnumerable<OpenSearchSuggestion> Suggest(string searchTerms,int count);

        void Search(ref OpenSearchQuery query, out OpenSearchAtomResult result);

        void Search(ref OpenSearchQuery query,out OpenSearchRssResult result);
    }
}